package com.hbgc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/admin")
public class AdminController {


    /**
     * 后台登陆页面
     * @return
     */
    @RequestMapping("/login")
    public ModelAndView login()
    {
        ModelAndView mv=new ModelAndView();
        mv.setViewName("admin/login");
        return mv;
    }


    /**
     * 后台首页
     * @return
     */
    @RequestMapping("/")
    public ModelAndView index()
    {
        ModelAndView mv=new ModelAndView();
        mv.setViewName("admin/index");
        return mv;
    }

    /**
     * 视频分类页面
     * @return
     */
    @RequestMapping("/videotype")
    public ModelAndView videotype()
    {
       ModelAndView mv=new ModelAndView();
       mv.setViewName("admin/video/videotype");
       return mv;
    }

    /**
     * 视频页面
     * @return
     */
    @RequestMapping("/video")
    public ModelAndView video()
    {
        ModelAndView mv=new ModelAndView();
        mv.setViewName("admin/video/video");
        return mv;
    }


    /**
     * 用户信息
     * @return
     */
    @RequestMapping("/user")
    public ModelAndView user()
    {
        ModelAndView mv=new ModelAndView();
        mv.setViewName("admin/user/user");
        return mv;
    }


    /**
     * 爬虫策略
     * @return
     */
    @RequestMapping("/spider")
    public ModelAndView spider()
    {
        ModelAndView mv=new ModelAndView();
        mv.setViewName("admin/spider/spider");
        return mv;
    }



    /**
     * 定时策略
     * @return
     */
    @RequestMapping("/task")
    public ModelAndView task()
    {
        ModelAndView mv=new ModelAndView();
        mv.setViewName("admin/spider/task");
        return mv;
    }



    /**
     * 基础信息
     * @return
     */
    @RequestMapping("/base")
    public ModelAndView base()
    {
        ModelAndView mv=new ModelAndView();
        mv.setViewName("admin/base/base");
        return mv;
    }


}
